package com.testplatfrom.project.enumproject.variable;

import com.testplatfrom.project.enumproject.environment.AssertTypeEnum;

public enum ScenarioEnum {
    API("接口测试"),
    UI("UI测试")
    ;
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ScenarioEnum() {
    }

    ScenarioEnum(String message) {
        this.message = message;
    }

    public static ScenarioEnum getByKey(String message){
        for (ScenarioEnum assertMethodsType:values()){
            if (message.equals(assertMethodsType.getMessage())){
                return assertMethodsType;
            }
        }
        return null;
    }
}
